package com.jl.sms;

import com.jl.sms.userdata.UserData;

public interface ISMS {

	/**
	 * set address
	 * 
	 * @param address
	 *            the address number like 10086
	 */
	void setAddress(String address);

	/**
	 * get address
	 * 
	 * @return
	 */
	String getAddress();

	/**
	 * @see JL
	 * @param type
	 */
	void setType(int type);

	/**
	 * get the current type
	 * 
	 * @return
	 */
	int getType();

	/**
	 * set userdata
	 * 
	 * @param ud
	 */
	void setUserData(UserData ud);

	/**
	 * getUserData
	 * 
	 * @return
	 */
	UserData getUserData();

	/**
	 * build a short message
	 * 
	 * @return
	 * @throws Exception
	 */
	String build() throws Exception;

}
